home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
WININET.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
45KB
|
1,070 lines
//----------------------------------------------------------------------------
// WinInet.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: WinInet.pas
//----------------------------------------------------------------------------
#ifndef WinInetHPP
#define WinInetHPP
//----------------------------------------------------------------------------
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Wininet
{
//-- type declarations -------------------------------------------------------
typedef void *HINTERNET;
typedef void * *PHINTERNET;
typedef Word INTERNET_PORT;
typedef Word *PINTERNET_PORT;
struct TInternetAsyncResult;
typedef TInternetAsyncResult *PInternetAsyncResult;
#pragma pack(push, 1)
struct TInternetAsyncResult
{
int dwResult;
int dwError;
} ;
#pragma pack(pop)
typedef void *TFNInternetStatusCallback;
typedef void * *PFNInternetStatusCallback;
struct TGopherFindData;
typedef TGopherFindData *PGopherFindData;
#pragma pack(push, 1)
struct TGopherFindData
{
wchar_t DisplayString[128];
int GopherType;
int SizeLow;
int SizeHigh;
FILETIME LastModificationTime;
wchar_t Locator[653];
} ;
#pragma pack(pop)
struct TGopherAdminAttributeType;
typedef TGopherAdminAttributeType *PGopherAdminAttributeType;
#pragma pack(push, 1)
struct TGopherAdminAttributeType
{
char *Comment;
char *EmailAddress;
} ;
#pragma pack(pop)
struct TGopherModDateAttributeType;
typedef TGopherModDateAttributeType *PGopherModDateAttributeType;
#pragma pack(push, 1)
struct TGopherModDateAttributeType
{
FILETIME DateAndTime;
} ;
#pragma pack(pop)
struct TGopherTtlAttributeType;
typedef TGopherTtlAttributeType *PGopherTtlAttributeType;
#pragma pack(push, 1)
struct TGopherTtlAttributeType
{
int Ttl;
} ;
#pragma pack(pop)
struct TGopherScoreAttributeType;
typedef TGopherScoreAttributeType *PGopherScoreAttributeType;
#pragma pack(push, 1)
struct TGopherScoreAttributeType
{
int Score;
} ;
#pragma pack(pop)
struct TGopherScoreRangeAttributeType;
typedef TGopherScoreRangeAttributeType *PGopherScoreRangeAttributeType;
#pragma pack(push, 1)
struct TGopherScoreRangeAttributeType
{
int LowerBound;
int UpperBound;
} ;
#pragma pack(pop)
struct TGopherSiteAttributeType;
typedef TGopherSiteAttributeType *PGopherSiteAttributeType;
#pragma pack(push, 1)
struct TGopherSiteAttributeType
{
char *Site;
} ;
#pragma pack(pop)
struct TGopherOrganizationAttributeType;
typedef TGopherOrganizationAttributeType *PGopherOrganizationAttributeType;
#pragma pack(push, 1)
struct TGopherOrganizationAttributeType
{
char *Organization;
} ;
#pragma pack(pop)
struct TGopherLocationAttributeType;
typedef TGopherLocationAttributeType *PGopherLocationAttributeType;
#pragma pack(push, 1)
struct TGopherLocationAttributeType
{
char *Location;
} ;
#pragma pack(pop)
struct TGopherGeographicalLocationAttributeType;
typedef TGopherGeographicalLocationAttributeType *PGopherGeographicalLocationAttributeType;
#pragma pack(push, 1)
struct TGopherGeographicalLocationAttributeType
{
int DegreesNorth;
int MinutesNorth;
int SecondsNorth;
int DegreesEast;
int MinutesEast;
int SecondsEast;
} ;
#pragma pack(pop)
struct TGopherTimezoneAttributeType;
typedef TGopherTimezoneAttributeType *PGopherTimezoneAttributeType;
#pragma pack(push, 1)
struct TGopherTimezoneAttributeType
{
int Zone;
} ;
#pragma pack(pop)
struct TGopherProviderAttributeType;
typedef TGopherProviderAttributeType *PGopherProviderAttributeType;
#pragma pack(push, 1)
struct TGopherProviderAttributeType
{
char *Provider;
} ;
#pragma pack(pop)
struct TGopherVersionAttributeType;
typedef TGopherVersionAttributeType *PGopherVersionAttributeType;
#pragma pack(push, 1)
struct TGopherVersionAttributeType
{
char *Version;
} ;
#pragma pack(pop)
struct TGopherAbstractAttributeType;
typedef TGopherAbstractAttributeType *PGopherAbstractAttributeType;
#pragma pack(push, 1)
struct TGopherAbstractAttributeType
{
char *ShortAbstract;
char *AbstractFile;
} ;
#pragma pack(pop)
struct TGopherViewAttributeType;
typedef TGopherViewAttributeType *PGopherViewAttributeType;
#pragma pack(push, 1)
struct TGopherViewAttributeType
{
char *ContentType;
char *Language;
int Size;
} ;
#pragma pack(pop)
struct TGopherVeronicaAttributeType;
typedef TGopherVeronicaAttributeType *PGopherVeronicaAttributeType;
#pragma pack(push, 1)
struct TGopherVeronicaAttributeType
{
DWord TreeWalk;
} ;
#pragma pack(pop)
struct TGopherAskAttributeType;
typedef TGopherAskAttributeType *PGopherAskAttributeType;
#pragma pack(push, 1)
struct TGopherAskAttributeType
{
char *QuestionType;
char *QuestionText;
} ;
#pragma pack(pop)
struct TGopherUnknownAttributeType;
typedef TGopherUnknownAttributeType *PGopherUnknownAttributeType;
#pragma pack(push, 1)
struct TGopherUnknownAttributeType
{
char *Text;
} ;
#pragma pack(pop)
struct TGopherAttributeType;
typedef TGopherAttributeType *PGopherAttributeType;
#pragma pack(push, 1)
struct TGopherAttributeType
{
int CategoryId;
int AttributeId;
union
{
TGopherUnknownAttributeType Unknown;
TGopherAskAttributeType Ask;
TGopherVeronicaAttributeType Veronica;
TGopherViewAttributeType View;
TGopherAbstractAttributeType Abstract;
TGopherVersionAttributeType Version;
TGopherProviderAttributeType Provider;
TGopherTimezoneAttributeType TimeZone;
TGopherGeographicalLocationAttributeType GeographicalLocation;
TGopherLocationAttributeType Location;
TGopherOrganizationAttributeType Organization;
TGopherSiteAttributeType Site;
TGopherScoreRangeAttributeType ScoreRange;
TGopherScoreAttributeType Score;
TGopherTtlAttributeType Ttl;
TGopherModDateAttributeType ModDate;
TGopherAdminAttributeType Admin;
};
} ;
#pragma pack(pop)
typedef void *TFNGopherAttributeEnumerator;
typedef void * *PFNGopherAttributeEnumerator;
//-- var, const, procedure ---------------------------------------------------
#define INTERNET_INVALID_PORT_NUMBER (Byte)(0)
#define INTERNET_DEFAULT_FTP_PORT (Byte)(21)
#define INTERNET_DEFAULT_GOPHER_PORT (Byte)(70)
#define INTERNET_DEFAULT_HTTP_PORT (Byte)(80)
#define INTERNET_MAX_HOST_NAME_LENGTH (Word)(256)
#define INTERNET_MAX_USER_NAME_LENGTH (Byte)(128)
#define INTERNET_MAX_PASSWORD_LENGTH (Byte)(128)
#define INTERNET_MAX_PORT_NUMBER_LENGTH (Byte)(5)
#define INTERNET_MAX_PORT_NUMBER_VALUE (int)(65535)
#define INTERNET_MAX_PATH_LENGTH (Word)(1024)
#define INTERNET_MAX_PROTOCOL_NAME "gopher"
#define INTERNET_MAX_URL_LENGTH (Word)(1031)
#define INTERNET_KEEP_ALIVE_UNKNOWN (Shortint)(-1)
#define INTERNET_KEEP_ALIVE_ENABLED (Byte)(1)
#define INTERNET_KEEP_ALIVE_DISABLED (Byte)(0)
#define INTERNET_REQFLAG_FROM_CACHE (Byte)(1)
#define INTERNET_REQFLAG_ASYNC (Byte)(2)
#define INTERNET_FLAG_RELOAD (int)(-2147483648)
#define INTERNET_FLAG_RAW_DATA (int)(1073741824)
#define INTERNET_FLAG_EXISTING_CONNECT (int)(536870912)
#define INTERNET_FLAG_ASYNC (int)(268435456)
#define INTERNET_FLAG_PASSIVE (int)(134217728)
#define INTERNET_FLAG_DONT_CACHE (int)(67108864)
#define INTERNET_FLAG_MAKE_PERSISTENT (int)(33554432)
#define INTERNET_FLAGS_MASK (int)(-33554432)
#define INTERNET_OPTIONS_MASK (int)(33554431)
#define INTERNET_NO_CALLBACK (Byte)(0)
#define PRE_CONFIG_INTERNET_ACCESS (Byte)(0)
#define LOCAL_INTERNET_ACCESS (Byte)(1)
#define GATEWAY_INTERNET_ACCESS (Byte)(2)
#define CERN_PROXY_INTERNET_ACCESS (Byte)(3)
#define INTERNET_SERVICE_FTP (Byte)(1)
#define INTERNET_SERVICE_GOPHER (Byte)(2)
#define INTERNET_SERVICE_HTTP (Byte)(3)
#define INTERNET_OPTION_CALLBACK (Byte)(1)
#define INTERNET_OPTION_CONNECT_TIMEOUT (Byte)(2)
#define INTERNET_OPTION_CONNECT_RETRIES (Byte)(3)
#define INTERNET_OPTION_CONNECT_BACKOFF (Byte)(4)
#define INTERNET_OPTION_SEND_TIMEOUT (Byte)(5)
#define INTERNET_OPTION_CONTROL_SEND_TIMEOUT (Byte)(5)
#define INTERNET_OPTION_RECEIVE_TIMEOUT (Byte)(6)
#define INTERNET_OPTION_CONT